#!/bin/sh
export NODE_ENV='production'
git diff --cached --name-only | \
  grep -E "src/.*\.(ts|tsx|vue)$" |\
  xargs eslint -c ./.eslintrc.js --max-warnings=0 --fix --no-ignore --no-error-on-unmatched-pattern
npx eslint . --ext .ts,.tsx,.vue
exit $?